﻿using Newtonsoft.Json;

namespace Model.Domain
{
    /// <summary>
    /// 代表令牌管理的类，包含与令牌相关的设置
    /// </summary>
    public class TokenManagement
    {
        /// <summary>
        /// 令牌的密钥
        /// </summary>
        [JsonProperty("secret")]
        public string Secret { get; set; }

        /// <summary>
        /// 令牌的签发者
        /// </summary>
        [JsonProperty("issuer")]
        public string Issuer { get; set; }

        /// <summary>
        /// 令牌的受众
        /// </summary>
        [JsonProperty("audience")]
        public string Audience { get; set; }

        /// <summary>
        /// 令牌的有效期
        /// </summary>
        [JsonProperty("accessExpiration")]
        public int AccessExpiration { get; set; }

        /// <summary>
        /// 刷新令牌的有效期
        /// </summary>
        [JsonProperty("refreshExpiration")]
        public int RefreshExpiration { get; set; }
    }
}